package com.base.caselib.bean;


/**
 * Created by arvin on 2018/8/21.
 */

public class FunctionEntity {

    private String clazz;
    private String picName;
    private String id;
    private int type;//1:需要搭档和路段；0：不需要
    private String des;
    private String num;//角标
    private int permission;//权限 0：不需要权限；1：需要权限

    public FunctionEntity(String clazz, String picName, String des) {
        this.clazz = clazz;
        this.picName = picName;
        this.des = des;
    }
    public FunctionEntity(String clazz, String picName, String des, int permission) {
        this.clazz = clazz;
        this.picName = picName;
        this.des = des;
        this.permission=permission;
    }

    public FunctionEntity(String clazz, String picName, int type, String des) {
        this.clazz = clazz;
        this.picName = picName;
        this.type = type;
        this.des = des;
    }

    public FunctionEntity(String clazz, String picName, int type, String des, int permission) {
        this.clazz = clazz;
        this.picName = picName;
        this.type = type;
        this.des = des;
        this.permission=permission;
    }

    public FunctionEntity(String clazz, String picName, String des, String num) {
        this.clazz = clazz;
        this.picName = picName;
        this.des = des;
        this.num = num;
    }

    public FunctionEntity(String clazz) {
        this.clazz = clazz;
    }



    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public String getPicName() {
        return picName;
    }

    public void setPicName(String picName) {
        this.picName = picName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public int getPermission() {
        return permission;
    }

    public void setPermission(int permission) {
        this.permission = permission;
    }

    @Override
    public boolean equals(Object obj) {
        if(this.clazz==null||obj==null)
        {
            return false;
        }
        return this.clazz.equals(((FunctionEntity)obj).clazz);
    }


}
